package tk.mybatis.simple.model;

import java.util.Date;
import java.io.Serializable;
import java.util.List;

/**
 * 角色表(SysRole)实体类
 *
 * @author makejava
 * @since 2021-01-28 22:13:35
 */
public class SysRole implements Serializable {
    private static final long serialVersionUID = -18356943698391875L;
    /**
    * 角色ID
    */
    private Long id;
    /**
    * 角色名
    */
    private String roleName;
    /**
    * 有效标志
    */
    private Integer enabled;
    /**
    * 创建人
    */
    private Long createBy;
    /**
    * 创建时间
    */
    private Date createTime;

    private SysUser user;

    private List<SysPrivilege> privilegeList;

    public List<SysPrivilege> getPrivilegeList() {
        return privilegeList;
    }

    public void setPrivilegeList(List<SysPrivilege> privilegeList) {
        this.privilegeList = privilegeList;
    }

    public SysUser getUser() {
        return user;
    }

    public void setUser(SysUser user) {
        this.user = user;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public Integer getEnabled() {
        return enabled;
    }

    public void setEnabled(Integer enabled) {
        this.enabled = enabled;
    }

    public Long getCreateBy() {
        return createBy;
    }

    public void setCreateBy(Long createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("SysRole{");
        sb.append("id=").append(id);
        sb.append(", roleName='").append(roleName).append('\'');
        sb.append(", enabled=").append(enabled);
        sb.append(", createBy=").append(createBy);
        sb.append(", createTime=").append(createTime);
        sb.append(", user=").append(user);
        sb.append(", privilegeList=").append(privilegeList);
        sb.append('}');
        return sb.toString();
    }
}